import request from '../request'

//商品一级分类
export const categoryList1 = params => request.globalRequest(`/api/v1/appGoods/level1/categoryList`, 'GET', params, false)

//商品二级分类
export const categoryList2 = params => request.globalRequest(`/api/v1/appGoods/level2/categoryList`, 'GET', params, false)

//查询商品列表
export const queryGoodsList = params => request.globalRequest(`/api/v1/appGoods/queryGoodsList`, 'POST', params)

//获取商品详情
export const getGoodsInfo = params => request.globalRequest(`/api/v1/appGoods/getGoodsInfo`, 'GET', params)

//盲盒列表
export const queryBlindBoxList = params => request.globalRequest(`/api/v1/appGoods/queryBlindBoxList`, 'POST', params)

//盲盒详情
export const getBlindBoxInfo = params => request.globalRequest(`/api/v1/appGoods/getBlindBoxInfo`, 'GET', params)

//查询盲盒商品
export const queryBlindBoxGoodsList = params => request.globalRequest(`/api/v1/appGoods/queryBlindBoxGoodsList`, 'GET', params)



